package com.yomahub.liteflow.example.controller.basedecode;

import org.junit.Test;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Demo {

    @Test
    public void demo(){
        String input = "(int(x['rownum']), x['${ALT_RADIO}'], x['${AIRGROUND}', x['${GS}']";

        Pattern pattern = Pattern.compile("\\{([^}]+)\\}");
        Matcher matcher = pattern.matcher(input);

        while (matcher.find()) {
            String match = matcher.group(1);
            System.out.println(match);
        }
    }
}
